<?php
use admin\assets\AppAsset;
AppAsset::addJs($this,'/static/js/layui/layui.all.js');
?>

<div class="container">

    <form class="layui-form layui-form-pane" action="" id="set-form">

        <table class="layui-table layui-table-add" lay-skin="nob">
            <tbody>
            <tr>
                <th width="120px">选择代理：</th>
                <td>
                    <div style="width: 800px">
                        <select name="uid" id="uid" class="layui-select" lay-search>
                            <option value="">---选择代理---</option>
                            <?php foreach ($proxyuser as $v){?>
                                <option value="<?php echo $v['id']?>"  <?php echo $v['id']==$uid?'selected':'';?>><?php echo $v['name'];?></option>
                            <?php }?>
                        </select>
                    </div>
                </td>
            </tr>
            <tr>
                <th width="120px">代理区域：</th>
                
                <td>
                    <div style="width: 800px">
                        <input type="text" name="region" placeholder="代理区域" autocomplete="off" class="layui-input" lay-verify="required" value="<?php echo $region?>">
                    </div>
                </td>

            </tr>
            <tr>
                <th width="120px">区域编号：</th>

                <td>
                    <div style="width: 800px">
                        <input type="text" name="card_code" placeholder="区域编号（身份证前6位）,请用英文逗号分隔" autocomplete="off" class="layui-input" lay-verify="required" value="<?php echo $card_code?>"><span>（身份证前6位）,请用英文逗号分隔</span>
                    </div>
                </td>
            </tr>
            <tr>
                <th width="120px">备注：</th>

                <td>
                    <div style="width: 800px">
                        <input type="text" name="remark" placeholder="备注" autocomplete="off" class="layui-input"  value="<?php echo $remark?>">
                    </div>
                </td>
            </tr>
            <tr>
                <th width="120px">状态：</th>

                <td>
                    <div style="width: 800px">
                       有效:<input type="radio" name="status" placeholder="备注" autocomplete="off" class="layui-input" lay-verify="required" value="1" <?php echo $status==1?'checked':'';?>>
                       无效:<input type="radio" name="status" placeholder="备注" autocomplete="off" class="layui-input" lay-verify="required" value="2" <?php echo $status==2?'checked':'';?>>
                    </div>
                </td>
            </tr>
            </tbody>
        </table>
        
    </form>
</div>
<script>

    layui.use(['jquery', 'laydate','form','layer','laypage','table'], function() {
        var $ = layui.jquery,
            laydate = layui.laydate,
            layer = layui.layer,
            table = layui.table,
            form = layui.form;
        form.render();
    });
</script>